package com.zhiyou100.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

public class User implements Serializable{
	private static final long serialVersionUID = 1L;
	private Integer u_id;
	private String u_username;
	private String u_password;
	private String u_name;
	private String u_email;
	private String u_tel;
	private Date u_updateTime;
	private Integer u_status;

	//角色
	private Set<Role> roles;

	public User(Integer u_id, String u_username, String u_password, String u_name, String u_email, String u_tel, Date u_updateTime, Integer u_status, Set<Role> roles) {
		this.u_id = u_id;
		this.u_username = u_username;
		this.u_password = u_password;
		this.u_name = u_name;
		this.u_email = u_email;
		this.u_tel = u_tel;
		this.u_updateTime = u_updateTime;
		this.u_status = u_status;
		this.roles = roles;
	}

	public User() {
	}

	public User(String u_username, String u_password, String u_name, String u_email, String u_tel, Date u_updateTime, Integer u_status, Set<Role> roles) {
		this.u_username = u_username;
		this.u_password = u_password;
		this.u_name = u_name;
		this.u_email = u_email;
		this.u_tel = u_tel;
		this.u_updateTime = u_updateTime;
		this.u_status = u_status;
		this.roles = roles;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getU_id() {
		return u_id;
	}

	public void setU_id(Integer u_id) {
		this.u_id = u_id;
	}

	public String getU_username() {
		return u_username;
	}

	public void setU_username(String u_username) {
		this.u_username = u_username;
	}

	public String getU_password() {
		return u_password;
	}

	public void setU_password(String u_password) {
		this.u_password = u_password;
	}

	public String getU_name() {
		return u_name;
	}

	public void setU_name(String u_name) {
		this.u_name = u_name;
	}

	public String getU_email() {
		return u_email;
	}

	public void setU_email(String u_email) {
		this.u_email = u_email;
	}

	public String getU_tel() {
		return u_tel;
	}

	public void setU_tel(String u_tel) {
		this.u_tel = u_tel;
	}

	public Date getU_updateTime() {
		return u_updateTime;
	}

	public void setU_updateTime(Date u_updateTime) {
		this.u_updateTime = u_updateTime;
	}

	public Integer getU_status() {
		return u_status;
	}

	public void setU_status(Integer u_status) {
		this.u_status = u_status;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	@Override
	public String toString() {
		return "User{" +
				"u_id=" + u_id +
				", u_username='" + u_username + '\'' +
				", u_password='" + u_password + '\'' +
				", u_name='" + u_name + '\'' +
				", u_email='" + u_email + '\'' +
				", u_tel='" + u_tel + '\'' +
				", u_updateTime=" + u_updateTime +
				", u_status=" + u_status +
				", roles=" + roles +
				'}';
	}
}
	


